﻿@model IEnumerable<KipLink.Models.LINK>

@{
    ViewBag.Title = "Inbox - KipLink";
}

<h2>Inbox</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table table-striped table-bordered table-condensed">
    <tr>
        <th>

            @Html.DisplayNameFor(model => model.LINKNAME)

        </th>
        <th>
            @Html.DisplayNameFor(model => model.TITLE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DESCRIPTION)
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                <a href=@item.LINKNAME>
                    @Html.DisplayFor(modelItem => item.LINKNAME)
                </a>
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TITLE)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DESCRIPTION)
            </td>
            <td>
                <a href=@item.LINKNAME>Go</a> |
                @Html.ActionLink("Edit", "Edit", new { id = Convert.ToInt32(item.ID) }) |
                @Html.ActionLink("Details", "Details", new { id = Convert.ToInt32(item.ID) }) |
                @Html.ActionLink("Delete", "Delete", new { id = Convert.ToInt32(item.ID) })
            </td>
        </tr>
    }

</table>
